<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<table bordercolor="#EAEAEA" style="border-width: thin;" >
<thead>
<tr>
	<td width="200" bgcolor="#EAEAEA">
	<font size="2" style="font-weight: bolder;">공지사항</font>
	<font size="2" color="red" style="font-weight: bolder;">Notice</font>
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	<a href="noticeList.do" style="text-decoration: none;"><font size="1" style="font-weight: bolder;">더보기</font></a>
</tr>
</thead>
<tbody >
<c:forEach items="${requestScope.map.notice}" var="notice">
	<tr>
	<td><font size="2"><a href="showNoticeInfo.do?no=${notice.no }">＋ ${notice.title }</a></font></td>
	</tr>
</c:forEach>
</tbody>
</table>

<font size="1"><br></font>

<table bordercolor="#EAEAEA" style="border-width: thin;" >
<thead>
<tr>
	<td colspan="2" width="200" bgcolor="#EAEAEA">
	<font size="2" color="red" style="font-weight: bolder;">New</font>
	<font size="2" color="black" style="font-weight: bolder;">과외선생님</font>
	</td>
</tr>
</thead>
<tbody >
<c:forEach items="${requestScope.map.teacher}" var="teacher">
	<tr>
	<td rowspan='5'>
	<c:choose>
	<c:when test="${teacher.savefilename==null }">
	<img src="${initParam.root }img/default.jpg" width="70" height="80"> 
	</c:when>
	<c:otherwise>
	<img src="${initParam.root }upload/${teacher.savefilename}" width="70" height="80">
	</c:otherwise>
	</c:choose>
	
	</td>
	<td><font size="2">이름: ${teacher.name }</font></td>
	</tr>
	<tr>
	<td><font size="2">성별: ${teacher.gender }</font></td>
	</tr>
	<tr>
	<td><font size="2">출신학교: ${teacher.university }대학교</font></td>
	</tr>
	<tr>
	<td><font size="2">수업과목: ${teacher.hopesubject }</font></td>
	</tr>
	<tr>
	<td><font size="2">지역: ${teacher.hoperegion }</font></td>
	</tr>
	<tr>
	<td colspan="2"><hr color="grey" size="1"></td>
	</tr>
</c:forEach>
</tbody>
</table>


<font size="1"><br></font>

<table bordercolor="#EAEAEA" style="border-width: thin;" >
<thead>
<tr>
	<td width="200" bgcolor="#EAEAEA">
	<font size="2" color="red" style="font-weight: bolder;">New</font>
	<font size="2" color="black" style="font-weight: bolder;">과외학생</font>
	</td>
</tr>
</thead>
<tbody >
<c:forEach items="${requestScope.map.student}" var="student">
	<tr>
	<td><font size="2">이름: ${student.name } | 성별: ${student.gender }</font></td>
	</tr>
	<tr>
	<td><font size="2">학년: ${student.grade }</font></td>
	</tr>
	<tr>
	<td><font size="2">원하는 과목: ${student.hopesubject }</font></td>
	</tr>
	<tr>
	<td><font size="2">지역: ${student.codeaddress }</font><br><hr color="grey" size="1"></td>
	</tr>
</c:forEach>
</tbody>
</table>

